<!DOCTYPE html>
<html>
<head>
	<title>功能选择</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title></title>
    <script src="js/mui.js"></script>
	<script src="js/common.js"></script>
    <link href="css/mui.css" rel="stylesheet"/>
	<link href="css/common.css" rel="stylesheet"/>
	<link href="css/gnxz.css" rel="stylesheet"/>
    <link href="css/xmjc.css" rel="stylesheet"/>
	<!--<script src="js/xmjc.js"></script>--> 
    <!-- Nicky -->
    <link rel="stylesheet" href="css/nicky.css" /> 
    <script src="js/jquery.min.js"></script>
    <script src="js/webdb.js"></script>
</head>
<body>
	  
		<header class="mui-bar mui-bar-nav mui-bar-transparent bg main-header" >
		<div class="back"><a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left back" >返回</a></div>
		<!--<div class="back" style="text-align: center;"><a class="mui-icon  mui-pull-center back" >项目检测</a></div>-->
	
	   </header>
	   <div class="bg main-nav" > </div> 
	   <div class="mui-content" style="margin-top:10px;" >
		   <div class="pBox">
				<div class="pHeader" >项目检测</div>
				<div class="uinfo" >
					<ul  >
					  <li><i>质检员编号:</i><b class="txtUid">ZJ100005</b></li>
					  <li><i>质检员:</i><b class="txtUname">张三</b></li>
					  <li><i>车牌号:</i><b class="txtCarnum">沪BK6379</b></li>
					  <li><i>磅单号:</i><b class="txtBdid">thv1234567890</b></li>
					  <li><i>物料描述:</i><b class="txtDesc">测试试试</b></li>
				    </ul>
				</div>
		   </div>
		   <div class="pBox" style="margin-top: -15px;" >
	            <div class="litem">
					  <button class="nbtn w6" id="btnSFJC">水分项目检测</button>
				      <button class="nbtn w3 ac" id="btnSFYWH" >●●●</button>
			    </div>
				<div class="litem">
					<button class="nbtn w6" id="btnZWJC">杂物项目检测</button>
					<button class="nbtn w3 ac" id="btnDBWH">●●●</button>
				</div class="litem">
				<div class="litem">
					<button class="nbtn w" id="btnZZJC">杂纸项目检测</button>
				</div>
				<div class="litem">
					<button class="nbtn w" id="btnDJPD">物料及等级判定</button>
				</div>
			</div>
	   </div>
</body> 
<script type="text/javascript">
	var uid = null, uinfo = null, serverData=null;
	mui.init();
	mui.plusReady(function(){
		uid = getSession('UID');
		uinfo = JSON.parse(getSession('UINFO'));
		serverData = JSON.parse(getSession('serData'));
		
		$('.txtUname').text(serverData.uname);
		$('.txtBdid').text(serverData.bdid);
		$('.txtDesc').text(serverData.desc);
		$('.txtUid').text(serverData.uid);
		$('.txtCarnum').text(serverData.carNum);
		
		//水分项目检测
		$('#btnSFJC').on('click',function(ev){
			var sfyid = getSession('SFYID');
			var zjyid = getSession('ZJYID'); 
			if(sfyid && sfyid.length>0 && zjyid && zjyid.length>0){
				mui.openWindow({ url:'sfjc.html' });
			}else{
				mui.toast('您还没有维护水份仪数据');
				mui.openWindow({ url:'whsfy.html' });
			}
		});
		//水分仪维护
		$('#btnSFYWH').on('click',function(ev){ mui.openWindow({ url:'whsfy.html' }); });
		//杂物项目检测
		$('#btnZWJC').on('click',function(ev){
			if(getSession('DBID')){
				mui.openWindow({ url:'zwjc.html' });
			}else{
				mui.toast('您还没有维护水份仪数据');
				mui.openWindow({ url:'whdb.html' });
			}
		});
		//地磅维护
		$('#btnDBWH').on('click',function(ev){ mui.openWindow({ url:'whdb.html' }); });
		//杂纸项目检测
		$('#btnZZJC').on('click',function(ev){ mui.openWindow({ url:'zzjc.html' }); });
		$('#btnDJPD').on('click',function(ev){});
	});
	
</script>
</html>